﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using Workflow.Domain.Enums;

namespace Workflow.Domain.Models
{
    /// <summary>
    /// 审批表
    /// </summary>
    [Table(nameof(AuditModel))]
    public class AuditModel:BaseEntity
    {
        /// <summary>
        /// 自动生成的流程编号
        /// </summary>
        public string WorkflowId { get; set; }
        /// <summary>
        /// 当前执行节点
        /// </summary>
        public long ExecutionPointerId { get; set; }
        /// <summary>
        /// 当前审核步骤节点ID
        /// </summary>
        public string StepId { get; set; } = null!;
        /// <summary>
        /// 当前审核步骤节点名称
        /// </summary>
        public string StepName { get; set; } = null!;
        /// <summary>
        /// 状态
        /// </summary>
        public WorkFlowAuditStatuEnum StatuEnum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 审核人Id
        /// </summary>
        public long? AuditUserId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? AuditUserName { get; set; }
    }
}
